package com.me.modules.questionnaire.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.questionnaire.dao.AnCheckboxDao;
import com.me.modules.questionnaire.entity.AnCheckboxEntity;
import com.me.modules.questionnaire.service.AnCheckboxService;



@Service("anCheckboxService")
public class AnCheckboxServiceImpl implements AnCheckboxService {
	@Autowired
	private AnCheckboxDao anCheckboxDao;

	@Override
	public AnCheckboxEntity queryObject(Integer id){
		return anCheckboxDao.queryObject(id);
	}

	@Override
	public List<AnCheckboxEntity> queryList(Map<String, Object> map){
		return anCheckboxDao.queryList(map);
	}

    @Override
    public List<AnCheckboxEntity> queryListByBean(AnCheckboxEntity entity) {
        return anCheckboxDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return anCheckboxDao.queryTotal(map);
	}

	@Override
	public int save(AnCheckboxEntity anCheckbox){


		return anCheckboxDao.save(anCheckbox);
	}

	@Override
	public int update(AnCheckboxEntity anCheckbox){
        return anCheckboxDao.update(anCheckbox);
	}

	@Override
	public int delete(Integer id){
        return anCheckboxDao.delete(id);
	}

	@Override
	public int deleteBatch(Integer[] ids){
        return anCheckboxDao.deleteBatch(ids);
	}

}
